package net.zdreamer.shunyi.ui;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.widget.RadioGroup;

import net.zdreamer.shunyi.R;
import net.zdreamer.shunyi.adapter.FragmentTabAdapter;
import net.zdreamer.shunyi.ui.fragment.BangHuiFragment;
import net.zdreamer.shunyi.ui.fragment.HiBangFragment;
import net.zdreamer.shunyi.ui.fragment.MessageFragment;
import net.zdreamer.shunyi.ui.fragment.MyInfoFragment;
import net.zdreamer.shunyi.utils.ViewControlor;

import java.util.ArrayList;
import java.util.List;


public class HomeActivity extends FragmentActivity {
    private RadioGroup radio_group;
    public List<Fragment> fragments = new ArrayList<Fragment>();
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_log_in);
        radio_group = (RadioGroup) findViewById(R.id.tabs_rg);
        ViewControlor.setSize(this, radio_group, 640, 98, true);

        fragments.add(new BangHuiFragment());
        fragments.add(new HiBangFragment());
        fragments.add(new MessageFragment());
        fragments.add(new MyInfoFragment());
        FragmentTabAdapter tabAdapter = new FragmentTabAdapter(this,fragments, R.id.tab_content, radio_group, false);

    }


}
